|
In Microsoft's .NET Framework, the Common Type System (CTS) is a standard that specifies how type definitions and specific values of types are represented in computer memory. It is intended to allow programs written in different programming languages to easily share information. As used in programming languages, a type can be described as a definition of a set of values (for example, "all integers between 0 and 10"), and the allowable operations on those values (for example, addition and subtraction). The specification for the CTS is contained in Ecma standard 335, "Common Language Infrastructure (CLI) Partitions I to VI." The CLI and the CTS were created by Microsoft, and the Microsoft .NET framework is an implementation of the standard. ==Functions of the Common Type System== *To establish a framework that helps enable cross-language integration, type safety, and high performance code execution. *To provide an object-oriented model that supports the complete implementation of many programming languages. *To define rules that languages must follow, which helps ensure that objects written in different languages can interact with each other. *The CTS also defines the rules that ensures that the data types of objects written in various languages are able to interact with each other. *The CTS also specifies the rules for type visibility and access to the members of a type, i.e. the CTS establishes the rules by which assemblies form scope for a type, and the Common Language Runtime enforces the visibility rules. *The CTS defines the rules governing type inheritance, virtual methods and object lifetime. *Languages supported by .NET can implement all or some common data types… When rounding fractional values, the halfway-to-even ("banker's") method is used by default, throughout the Framework. Since version 2, "Symmetric Arithmetic Rounding" (round halves away from zero) is also available by programmer's option.〔(【引用サイトリンク】 MidpointRounding Enumeration )〕 *it is used to communicate with other languages 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Common Type System」の詳細全文を読む スポンサード リンク
|